package com.springDemo.AOP.test;

import com.springDemo.AOP.service.IPayApi;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by Administrator on 2016/7/14.
 */
public class PayTestAOP {

    @Test
    public void testAspectJ(){
        ApplicationContext ac = new ClassPathXmlApplicationContext("spring-config.xml");
        IPayApi pay = ac.getBean("pay",IPayApi.class);
        pay.payByFace();
    }

}
